home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2006 February
/
PCWorld_2006-02_cd.bin
/
software
/
vyzkuste
/
tnt
/
tnt.exe
/
{app}
/
plugins
/
Desktop Wallpaper Pos.ttp
< prev
next >
Wrap
INI File
|
2005-03-15
|
2KB
|
71 lines
[SETTINGS]
category=Windows Tweaks::Desktop::Change the Position of the Desktop Wallpaper
Caption=Change the Position of the Desktop Wallpaper
version=1.0
#=Use this tweak to specify the position of your current wallpaper. This can be used to move the picture anywhere on your screen.
#=
#=\nTo reset the position to default, clear both fields to zeroes and apply.
Author=
[INTERFACE]
TYPE=multi
type0=spin
style0=-1024,1024
Text0=Horizontal Offset (pixels)
type1=spin
Text1=Vertical Offset (pixels)
style1=-1024,1024
[EXPORT]
val0="HKCU\Control Panel\Desktop\WallpaperOriginX"
val1="HKCU\Control Panel\Desktop\WallpaperOriginY"
[SCRIPT]
Dim strKey,str1,str2
strKey="HKCU\Control Panel\Desktop\"
str1="WallpaperOriginX"
str2="WallpaperOriginY"
Sub OnInit()
Dim s,i
i=RegReadValue(strKey & str1)
if IsEmpty(i) then
SetItemText 0,""
else
SetItemText 0,i
end if
i=RegReadValue(strKey & str2)
if IsEmpty(i) then
SetItemText 1,""
else
SetItemText 1,i
end if
End Sub
Sub OnApply(x,y)
Dim s
s=GetItemText(0)
if len(s)=0 then
s=RegReadValue(strKey & str1)
if IsEmpty(s)=false then
Call RegDeleteVal(strKey & str1)
end if
else
Call RegWriteValue(strKey & str1,s,1)
end if
s=GetItemText(1)
if len(s)=0 then
s=RegReadValue(strKey & str2)
if IsEmpty(s)=false then
Call RegDeleteVal(strKey & str2)
end if
else
Call RegWriteValue(strKey & str2,s,1)
end if
Call Restart
Call NotifySettingChange(0)
End Sub